<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserPersonnelsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_personnels', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->integer('user_id');//用户id
            $table->integer('identity')->default(1);// 1表示个人 2表示企业
            $table->tinyInteger('sex')->default(0);//0表示保密 1表男 2表女
            $table->string('motto')->nullable();//座右铭
            $table->string('position')->nullable();//职位
            $table->bigInteger('vip_over_time')->default(0);//vip到期时间
            $table->bigInteger('graded')->default(500);//职场信用评分
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_personnels');
    }
}
